package com.pixiv.DAO;

import com.pixiv.Entity.TitlePicture;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TitleMapping {

    String getTitlePicturePathByUUIDLocation(@Param("uuid") String uuid, @Param("location") int location);
    TitlePicture getTitleByUUID(@Param("uuid") String uuid);
    void insertTitle(
            @Param("uuid") String uuid,
            @Param("cap") String cap,
            @Param("context") String context,
            @Param("label") String lab,
            @Param("age") int age,
            @Param("ogrin") int orgin,
            @Param("date") String date,
            @Param("userid") int userid
    );
    void insertPicture(@Param("PATH") String path, @Param("uuid") String uuid, @Param("location") int location);
    void deleteTitle(@Param("uuid") String uuid);
    void deletePicture(@Param("uuid") String uuid);

    List<TitlePicture> getUserTitles(@Param("userid")int userid);
    int getPicturesTotal(@Param("uuid")String uuid);
    List<TitlePicture> getTitles(TitlePicture titlePicture);
    List<TitlePicture> searchTitle(@Param("caption")String caption);
}
